package cn.itsy.service.sysrole;

import cn.itsy.dao.role.SysRoleDao;
import cn.itsy.pojo.SysRole;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @author: MisterGay
 * @date: 2019-06-17 8:56
 */
@Service("sysRoleServiceimpl")
public class SysRoleServiceimpl implements SysRoleService {
    @Resource(name = "sysRoleDaoImple")
    private SysRoleDao sysRoleDao;

    @Override
    public List<SysRole> querySysRoleAll(String sql) {
        return this.sysRoleDao.querySysRoleAll(sql);
    }

    @Override
    public void updateSysRoleByName(String sql, String roleName, String oldRoleName) {
        this.sysRoleDao.updateSysRoleName(sql, roleName, oldRoleName);
    }
}
